\hypertarget{classsock_1_1http_1_1_http_response}{}\section{sock\+:\+:http\+:\+:Http\+Response Class Reference}
\label{classsock_1_1http_1_1_http_response}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}


H\+T\+T\+P响应  




{\ttfamily \#include $<$http\+\_\+response.\+h$>$}

Inheritance diagram for sock\+:\+:http\+:\+:Http\+Response\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classsock_1_1http_1_1_http_response}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{classsock_1_1http_1_1_http_response_a44adc96829b9a2afcdf7395e6fa2013c}{Http\+Response} (void)
\item 
\hyperlink{classsock_1_1http_1_1_http_response_a9a03a4b1585dbff76f8712d686469b82}{$\sim$\+Http\+Response} (void)
\item 
void \hyperlink{classsock_1_1http_1_1_http_response_ad591abcb16ff7b10ba680bbf0c00cac9}{set\+Status\+Code} (int code)
\begin{DoxyCompactList}\small\item\em 设置响应码 \end{DoxyCompactList}\item 
void \hyperlink{classsock_1_1http_1_1_http_response_a62b1124d617cbf0f88d6222c9d017ae2}{set\+Message} (std\+::string message)
\begin{DoxyCompactList}\small\item\em 设置响应消息 \end{DoxyCompactList}\item 
void \hyperlink{classsock_1_1http_1_1_http_response_a13e8aeafa0925d27a59f33ca0e03fd5e}{set\+Content\+Type} (std\+::string type)
\begin{DoxyCompactList}\small\item\em 设置内存类型 \end{DoxyCompactList}\item 
void \hyperlink{classsock_1_1http_1_1_http_response_abbb01a932e2c40a8f9d2928eaeff0d3a}{set\+Charset} (std\+::string charset)
\begin{DoxyCompactList}\small\item\em 设置字符集 \end{DoxyCompactList}\item 
const \hyperlink{namespacesock_1_1http_a4e8d5223a27396b63f6a4d96d9f2572b}{Http\+Buffer\+Ptr} \& \hyperlink{classsock_1_1http_1_1_http_response_a00ea608d8e890ded25244cea39757d9a}{get\+Buffer} (void) const 
\begin{DoxyCompactList}\small\item\em 获取数据缓存 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
class \hyperlink{classsock_1_1http_1_1_http_response_a3e611175a551b64dda26f513067e0d04}{Http\+Session}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
H\+T\+T\+P响应 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{classsock_1_1http_1_1_http_response_a44adc96829b9a2afcdf7395e6fa2013c}{}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}!Http\+Response@{Http\+Response}}
\index{Http\+Response@{Http\+Response}!sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}
\subsubsection[{Http\+Response(void)}]{\setlength{\rightskip}{0pt plus 5cm}Http\+Response\+::\+Http\+Response (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{classsock_1_1http_1_1_http_response_a44adc96829b9a2afcdf7395e6fa2013c}
\hypertarget{classsock_1_1http_1_1_http_response_a9a03a4b1585dbff76f8712d686469b82}{}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}!````~Http\+Response@{$\sim$\+Http\+Response}}
\index{````~Http\+Response@{$\sim$\+Http\+Response}!sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}
\subsubsection[{$\sim$\+Http\+Response(void)}]{\setlength{\rightskip}{0pt plus 5cm}Http\+Response\+::$\sim$\+Http\+Response (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{classsock_1_1http_1_1_http_response_a9a03a4b1585dbff76f8712d686469b82}


\subsection{Member Function Documentation}
\hypertarget{classsock_1_1http_1_1_http_response_a00ea608d8e890ded25244cea39757d9a}{}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}!get\+Buffer@{get\+Buffer}}
\index{get\+Buffer@{get\+Buffer}!sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}
\subsubsection[{get\+Buffer(void) const }]{\setlength{\rightskip}{0pt plus 5cm}const {\bf Http\+Buffer\+Ptr}\& sock\+::http\+::\+Http\+Response\+::get\+Buffer (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_response_a00ea608d8e890ded25244cea39757d9a}


获取数据缓存 

\begin{DoxyReturn}{Returns}
Http\+Buffer\+Ptr 
\end{DoxyReturn}
\hypertarget{classsock_1_1http_1_1_http_response_abbb01a932e2c40a8f9d2928eaeff0d3a}{}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}!set\+Charset@{set\+Charset}}
\index{set\+Charset@{set\+Charset}!sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}
\subsubsection[{set\+Charset(std\+::string charset)}]{\setlength{\rightskip}{0pt plus 5cm}void sock\+::http\+::\+Http\+Response\+::set\+Charset (
\begin{DoxyParamCaption}
\item[{std\+::string}]{charset}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_response_abbb01a932e2c40a8f9d2928eaeff0d3a}


设置字符集 


\begin{DoxyParams}{Parameters}
{\em charset} & \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1http_1_1_http_response_a13e8aeafa0925d27a59f33ca0e03fd5e}{}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}!set\+Content\+Type@{set\+Content\+Type}}
\index{set\+Content\+Type@{set\+Content\+Type}!sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}
\subsubsection[{set\+Content\+Type(std\+::string type)}]{\setlength{\rightskip}{0pt plus 5cm}void sock\+::http\+::\+Http\+Response\+::set\+Content\+Type (
\begin{DoxyParamCaption}
\item[{std\+::string}]{type}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_response_a13e8aeafa0925d27a59f33ca0e03fd5e}


设置内存类型 


\begin{DoxyParams}{Parameters}
{\em type} & \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1http_1_1_http_response_a62b1124d617cbf0f88d6222c9d017ae2}{}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}!set\+Message@{set\+Message}}
\index{set\+Message@{set\+Message}!sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}
\subsubsection[{set\+Message(std\+::string message)}]{\setlength{\rightskip}{0pt plus 5cm}void sock\+::http\+::\+Http\+Response\+::set\+Message (
\begin{DoxyParamCaption}
\item[{std\+::string}]{message}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_response_a62b1124d617cbf0f88d6222c9d017ae2}


设置响应消息 


\begin{DoxyParams}{Parameters}
{\em message} & \\
\hline
\end{DoxyParams}
\hypertarget{classsock_1_1http_1_1_http_response_ad591abcb16ff7b10ba680bbf0c00cac9}{}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}!set\+Status\+Code@{set\+Status\+Code}}
\index{set\+Status\+Code@{set\+Status\+Code}!sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}
\subsubsection[{set\+Status\+Code(int code)}]{\setlength{\rightskip}{0pt plus 5cm}void sock\+::http\+::\+Http\+Response\+::set\+Status\+Code (
\begin{DoxyParamCaption}
\item[{int}]{code}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classsock_1_1http_1_1_http_response_ad591abcb16ff7b10ba680bbf0c00cac9}


设置响应码 


\begin{DoxyParams}{Parameters}
{\em code} & \\
\hline
\end{DoxyParams}


\subsection{Friends And Related Function Documentation}
\hypertarget{classsock_1_1http_1_1_http_response_a3e611175a551b64dda26f513067e0d04}{}\index{sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}!Http\+Session@{Http\+Session}}
\index{Http\+Session@{Http\+Session}!sock\+::http\+::\+Http\+Response@{sock\+::http\+::\+Http\+Response}}
\subsubsection[{Http\+Session}]{\setlength{\rightskip}{0pt plus 5cm}friend class {\bf Http\+Session}\hspace{0.3cm}{\ttfamily [friend]}}\label{classsock_1_1http_1_1_http_response_a3e611175a551b64dda26f513067e0d04}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
E\+:/git/sock/sock/http/\hyperlink{http__response_8h}{http\+\_\+response.\+h}\item 
E\+:/git/sock/src/http/\hyperlink{http__response_8cc}{http\+\_\+response.\+cc}\end{DoxyCompactItemize}
